package com.example.demo.mapper;

import com.example.demo.mapper.entity.SysUserView;
import com.example.demo.mapper.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author Lucy
 * @create 2024-01-28 20:44
 */
@Mapper
@Repository
public interface UserLoginMapper {
    @Select("SELECT * FROM sys_user_view WHERE name = #{name}")
    SysUserView selectUserByName(String name);
    @Select("SELECT * FROM sys_user_view WHERE user_id = #{userId}")
    SysUserView selectCurUser(int userId);
}
